#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :JS逆向练习01.py
# @Time      :2024/4/13 14:55
# @Author    :Sherlock
"""
案例1:
    目标网站1:'aHR0cHM6Ly93d3cuamlhbnNoZWt1LmNvbS9zZWFyY2gvZW50ZXJwcmlzZS9wMy8='
    目标接口：页码对应的页面数据(page数据)
案例2:
     目标网站2:'aHR0cHM6Ly9zZWFyY2guYmlkY2VudGVyLmNvbS5jbi9zZWFyY2g/a2V5d29yZHM9JWU2JTljJThkJWU1JThhJWExJWU1JTk5JWE4'
     目标接口：数据加密的接口即可，进行解密
案例3:
     目标网站3:'aHR0cHM6Ly93d3cucWltaW5ncGlhbi5jb20v'
     目标接口：'aHR0cHM6Ly92aXBhcGkucWltaW5ncGlhbi5jbi9Ib21lUGFnZS9yZWNvbW1lbmRJbmZv'
"""

import base64

url1 = 'aHR0cHM6Ly93d3cuamlhbnNoZWt1LmNvbS9zZWFyY2gvZW50ZXJwcmlzZS9wMy8='
# https://www.jiansheku.com/search/enterprise/p3/
url2 = 'aHR0cHM6Ly9zZWFyY2guYmlkY2VudGVyLmNvbS5jbi9zZWFyY2g/a2V5d29yZHM9JWU2JTljJThkJWU1JThhJWExJWU1JTk5JWE4'
# https://search.bidcenter.com.cn/search?keywords=%e6%9c%8d%e5%8a%a1%e5%99%a8
url3 = 'aHR0cHM6Ly93d3cucWltaW5ncGlhbi5jb20v'
# https://www.qimingpian.com/
url3_1 = 'aHR0cHM6Ly92aXBhcGkucWltaW5ncGlhbi5jbi9Ib21lUGFnZS9yZWNvbW1lbmRJbmZv'
# https://vipapi.qimingpian.cn/HomePage/recommendInfo

print(base64.b64decode(url3_1.encode()).decode())
